package com.sts.config;

//创建配置类读取JWT参数
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "jwt")
public class JwtProperties {
    private String secret;      // 密钥
    private long expiration;    // 有效期（秒）
}